<script type="text/html" template>
    <link rel="stylesheet" href="{{ layui.setter.base }}/start/layui/css/layui.css">
    <link rel="stylesheet" href="{{ layui.setter.base }}style/css/reset.css">
    <link rel="stylesheet" href="{{ layui.setter.base }}style/css/document.css">
    <script src="{{ layui.setter.base }}/start/layui/layui.all.js"></script>
</script>
   
    <!-- 弹出层 第一个-->
    <form class="layui-form" id="test">
        <div class="layui-title">编辑</div>
        <div class="layui-form-item">
            <label class="layui-form-label">项目名称：</label>
            <div class="layui-input-block">润滑</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">保养部位：</label>
            <div class="layui-input-block">
                <input type="text" name="" required lay-verify="required" autocomplete="on" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">保养标准：</label>
            <div class="layui-input-block">
                <input type="text" name="" required lay-verify="required" autocomplete="on" class="layui-input">
            </div>
        </div>
        <!-- 输入框 -->
        <div class="layui-form-item layui-form-text">
            <div class="layui-form-item">
                <label class="layui-form-label">保养说明：</label>
                <div class="layui-input-block">
                    <input type="text" name="" required lay-verify="required" autocomplete="on" class="layui-input" id="username">
                </div>
            </div>
        </div>
        <!-- 文件上传 -->
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">相关文档：</label>
            <div class="layui-input-block">
                <select name="quiz" lay-search>
                        <option value="">相关文档：</option>
                        <optgroup label="城市记忆">
                        <option value="你工作的第一个城市">你工作的第一个城市？</option>
                        </optgroup>
                        <optgroup label="学生时代">
                        <option value="你的工号">你的工号？</option>
                        <option value="你最喜欢的老师">你最喜欢的老师？</option>
                        </optgroup>
                    </select>
            </div>
        </div>
    </form>
    <div class="footer layui-btn-container">
        <button class="btn1 layui-btn layui-btn-radius layui-btn-primary">确定</button>
        <button class="btn2 layui-btn layui-btn-radius layui-btn-primary">取消</button>
    </div>
   
    <script>
        ;
        ! function() {
            var form = layui.form,
                layer = layui.layer,
                $ = layui.$,
                admin = layui.admin,
                view = layui.view,
                api = layui.api,
                table = layui.table,
                setter = layui.setter,
                laytpl = layui.laytpl,
                utill = layui.utill,
                form = layui.form,
                element = layui.element;
            $('.footer').on('click', 'button', function() {
                var index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);
            });
        }();
    </script>